package com.cq.androidtools.jetpack.livedata

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

/**
 * 作者: CQ
 * 日期: 2022-01-21
 * 说明:
 */
@HiltViewModel
class LiveDataViewModel @Inject constructor() : ViewModel() {

    private val name = MutableLiveData<String>()

    fun getName() = name


    fun aa(){
        name.postValue("33")
    }

}